<template>
  <div class="item">
    <img src="@/assets/vue.svg" />
    <div class="item__center flex-1">
      <span class="title">医疗应用团队</span>
      <span class="desc">金金,嗨大家好,我已经分享了xxx2213eaweqq</span>
    </div>
    <div class="item__right">
      <span class="date">12:04</span>
      <span class="info">99+</span>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style lang="scss" scoped>
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 20px;
  gap: 10px;
  border-radius: 10px;
  padding: 6px 10px 6px 10px;
  font-family: "PingFang";

  &.active {
    background-color: rgba($color: #7D8592, $alpha: .1);
  }

  >img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }

  &__center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;

    .title {
      font-size: 16px;
    }

    .desc {
      display: inline-block;
      font-size: 12px;
      color: #7D8592;
      white-space: nowrap;
      // word-wrap: break-word;
      word-break: break-all;
      text-overflow: ellipsis;
      overflow: hidden;
      width: 100%;
    }
  }

  &__right {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3px;

    .date {
      color: #ccc;
      font-size: 12px;
    }

    .info {
      background-color: red;
      color: white;
      padding: 0px 8px;
      border-radius: 50%;
      font-size: 12px;
    }
  }
}
</style>